* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 i {
    margin-right: 10px;
}

.add-task {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.add-task input,
.add-task textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.add-task input:focus,
.add-task textarea:focus {
    outline: none;
    border-color: #667eea;
}

.add-task textarea {
    min-height: 80px;
    resize: vertical;
}

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.filters {
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.filters label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.filters input[type="radio"] {
    margin-right: 5px;
}

.task-stats {
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.task-stats span {
    font-size: 14px;
    color: #666;
}

.task-stats strong {
    display: block;
    font-size: 20px;
    color: #333;
    margin-top: 2px;
}

.task-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 5px;
}

.empty-state small {
    font-size: 14px;
}

.task-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.task-item:hover {
    background-color: #fafafa;
}

.task-item:last-child {
    border-bottom: none;
}

.task-checkbox {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.task-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.task-meta {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.task-actions {
    margin-left: 15px;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    transition: transform 0.2s;
}

.delete-btn:hover {
    transform: scale(1.2);
}

.completed .task-title,
.completed .task-description {
    text-decoration: line-through;
    opacity: 0.6;
}

.completed .task-checkbox {
    accent-color: #667eea;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .add-task,
    .filters,
    .task-stats {
        padding: 15px;
    }
    
    .filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .task-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .task-item {
        padding: 15px;
    }
}
